package com.social.service;

import com.social.dao.FriendApplyMapper;
import com.social.dao.model.FriendApply;
import com.social.dao.model.FriendApplyExample;
import com.social.daoEx.FriendApplyMapperEx;
import com.social.daoEx.model.FriendApplyEx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FriendApplyService {
	@Autowired
	private FriendApplyMapper friendApplyMapper;
	@Autowired
	private FriendApplyMapperEx friendApplyMapperEx;

	public int countByExample(FriendApplyExample example) {
		return this.friendApplyMapper.countByExample(example);
	}

	public FriendApply selectByPrimaryKey(Integer id) {
		return this.friendApplyMapper.selectByPrimaryKey(id);
	}

	public List<FriendApply> selectByExample(FriendApplyExample example) {
		return this.friendApplyMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.friendApplyMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(FriendApply record) {
		return this.friendApplyMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(FriendApply record) {
		return this.friendApplyMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(FriendApplyExample example) {
		return this.friendApplyMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(FriendApply record, FriendApplyExample example) {
		return this.friendApplyMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(FriendApply record, FriendApplyExample example) {
		return this.friendApplyMapper.updateByExample(record, example);
	}

	public int insert(FriendApply record) {
		return this.friendApplyMapper.insert(record);
	}

	public int insertSelective(FriendApply record) {
		return this.friendApplyMapper.insertSelective(record);
	}

	public List<FriendApplyEx> selectAppList(Integer id){
		return this.friendApplyMapperEx.selectAppList(id);
	}

}
